package com.yoona.system.service;

import com.yoona.common.response.BaseResponse;
import com.yoona.system.dto.WriteCommentsDto;
import com.yoona.system.entity.DynamicComments;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 动态评论表 服务类
 * </p>
 *
 * @author yoonada
 * @since 2020-11-03
 */
public interface IDynamicCommentsService extends IService<DynamicComments> {

    /**
     * 写评论
     * @param writeCommentsDto
     * @return
     */
    BaseResponse<Object> writeComments(WriteCommentsDto writeCommentsDto);

    /**
     * 判断是否有权删除这条评论
     * @param commenterId
     * @return
     */
    BaseResponse<Object> whetherCanDeleteThisComments(String commenterId);


    /**
     * 根据评论id删除一条评论
     * @param commentId
     * @param dynamicId
     * @return
     */
    BaseResponse<Object> deleteComments(String commentId,String dynamicId);

}
